Skip to content

Allow rector ^2.4.1 and replace file with getFile() if method exists#326

Open
samsonasik wants to merge 4 commits intopalantirnet:mainfrom
samsonasik:allow-get-file
Open

Allow rector ^2.4.1 and replace file with getFile() if method exists#326
samsonasik wants to merge 4 commits intopalantirnet:mainfrom
samsonasik:allow-get-file

Conversation

@samsonasik
Copy link
Copy Markdown
Contributor

Description

In rector 2.4.1, the file property usage is deprecated, use ->getFile() instead.

since this repo allow rector 1, this need method_exists() check.

@samsonasik
Copy link
Copy Markdown
Contributor Author

@bbrala ready to merge 👍

@samsonasik
Copy link
Copy Markdown
Contributor Author

samsonasik commented Apr 8, 2026

CI notice is unrelated :), ready to merge 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant